import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class CenterCard extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Padding(
        padding: EdgeInsets.fromLTRB(22.w, 22.h, 22.w, 22.h),
        child: Container(
          padding: EdgeInsets.fromLTRB(17.w, 17.h, 17.w, 17.h),
          decoration: BoxDecoration(
            color: Color.fromRGBO(255, 255, 255, 1),
            borderRadius: BorderRadius.all(Radius.circular(10.0)),
          ),
          child: Column(
            children: [
              Padding(
                padding: EdgeInsets.fromLTRB(0, 0, 0, 17.h),
                child: Row(
                  children: [
                    // 头像
                    Container(
                      width: 44,
                      height: 44,
                      child: Icon(
                        Icons.blur_on,
                        size: 38.0,
                      ),
                    ),
                    Container(width: 20, height: 44),
                    Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Text('三年级二班',
                            style: TextStyle(
                                // height: 2.0,
                                fontSize: 15.0,
                                fontWeight: FontWeight.w700)),
                        Text('教师：${23}人    学生：${33}人',
                            style: TextStyle(
                                color: Colors.black45,
                                fontSize: 12.0,
                                fontWeight: FontWeight.w300)),
                      ],
                    )
                  ],
                ),
              ),
              Container(
                height: .5,
                decoration:
                    BoxDecoration(color: Color.fromRGBO(235, 235, 235, 1)),
              ),
              Padding(
                padding: EdgeInsets.fromLTRB(10.w, 17.h, 10.w, 0),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Column(
                      children: [
                        Icon(
                          Icons.change_history,
                          size: 24.0,
                        ),
                        Text('学生点评', style: TextStyle(fontSize: 12.0))
                      ],
                    ),
                    Column(
                      children: [
                        Icon(
                          Icons.flip_to_back,
                          size: 24.0,
                        ),
                        Text('学生表现', style: TextStyle(fontSize: 12.0))
                      ],
                    ),
                    Column(
                      children: [
                        Icon(
                          Icons.donut_large,
                          size: 24.0,
                        ),
                        Text('课程表', style: TextStyle(fontSize: 12.0))
                      ],
                    ),
                    GestureDetector(
                      onTap: () {
                        Navigator.of(context).pushNamed('/setUp');
                        print("设置");
                      }, //手势函数名
                      child: Column(
                        children: [
                          Icon(
                            Icons.scatter_plot,
                            size: 24.0,
                          ),
                          Text('学生相册', style: TextStyle(fontSize: 12.0))
                        ],
                      ),
                    ),
                  ],
                ),
              )
            ],
          ),
        ));
  }
}
